package com.code.day03.abstractx;

public abstract class Animal {
    String name;

    public Animal(String name){
        this.name = name;
        System.out.println("我是抽象类有参构造");
    }

    public String getName() {
        return name;
    }

    public abstract void eat();
}
